// let money: number
// money = 100
// money = 3

// 字面量类型 + 联合类型
let money: 100 | 50 | 20 | 10 | 5 | 1

money = 100
money = 50
money = 20
money = 10

console.log('money面值为', money);

// 字面量类型 + 联合类型
let buttonType: 'primary' | 'success' | 'warning' | 'danger'

buttonType = 'success'

console.log('按钮类型为', buttonType);